<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <style>
        a {
            text-decoration: none;
            color: #000;
        }

        div {
            border: 1px solid #FC0;
            background: #FFC;
            color: #900;
            width: 150px;
            display: none;
        }
    </style>
</head>

<body>
    <!--，自动登录勾选（onmouseover，onmouseout） -->
    <a href="#" id="aId">自动登录</a>
    <div id="divId">为了您的安全请不要在公共场所使用！</div>
    <script>
        var divDom = document.getElementById("divId");
        var aDom = document.getElementById("aId");
        aDom.onmouseover = function () {

            divDom.style.display = "block"
        }
        aDom.onmouseout = function () {

            divDom.style.display = "none"
        }
    </script>
</body>

</html>